package com.juvepoland.jpdroid.models;

public enum NewsType {
	News("news"), Article("text");
	
	private String code;
	public String getCode(){
		return this.code;
	}
	private NewsType(String c){
		this.code = c;
	}
	public static NewsType getNewsType(String value){
		for(NewsType nt : NewsType.values()){
			if(nt.getCode().equals(value)){
				return nt;
			}
		}
		return null;
		
	}
}
